


package tpcar.ejb;
import javax.ejb.Remote;
import java.util.List;
import java.io.PrintWriter;
/**
 * Defines an interface for bean used to managed the app.
 */
@Remote
public interface Admin {

 /**
  * try to login with the given name and passw.
  * @return true if logged in.
  */  
  public boolean login (String username, String password)  ;
  
  /**
  * logout from the bean.
  */  
	public boolean logout ()  ;
  
	
  //	Delete a card , using the id to retrieve the good one
  	  public boolean  delete (long id) ;
  	  
	/**
  * add a new card.
  * @return true if the creation succeed.
  */  
  public boolean  addCarteDeVisite(final String nom, final String prenom, final String email, final String phone);
    

}
